<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // ReferenceError  引用类型错误
    // console.log(a);

    // TypeError 类型错误
    // let b = 200;
    // b();

    // RangeError 范围错误
    // let c = new Array(-2);
    // console.log(c);

    // SyntaxError 语法错误
    // function a(){}
    // a{}
  </script>
</body>
</html>